load("@npm//@bazel/typescript:index.bzl", "ts_library")

package(default_visibility = ["//:__subpackages__"])

ts_library(
    name = "signature",
    srcs = [
        "ecdsa_for_signing.ts",
        "ecdsa_for_verifying.ts",
        "ecdsa_private_key_manager.ts",
        "ecdsa_public_key_manager.ts",
        "ecdsa_util.ts",
        "index.ts",
        "public_key_sign_wrapper.ts",
        "public_key_verify_wrapper.ts",
        "sign.ts",
        "sign_wrapper.ts",
        "signature_config.ts",
        "signature_key_templates.ts",
        "verify.ts",
        "verify_wrapper.ts",
    ],
    module_name = "tink-crypto/signature",
    deps = [
        "//exception",
        "//internal",
        "//internal:proto",
        "//signature/internal",
        "//subtle",
    ],
)

ts_library(
    name = "signature_tests",
    testonly = True,
    srcs = [
        "ecdsa_private_key_manager_test.ts",
        "ecdsa_public_key_manager_test.ts",
        "public_key_sign_wrapper_test.ts",
        "public_key_verify_wrapper_test.ts",
        "signature_config_test.ts",
        "signature_key_templates_test.ts",
    ],
    deps = [
        ":signature",
        "//internal",
        "//internal:proto",
        "//signature/internal",
        "//subtle",
        "//testing/internal",
        "@npm//@types/jasmine",
    ],
)
